# message(STATUS "#[Logger]==> \n")

macro(link_thirdparty)

# vulkan
find_package(Vulkan REQUIRED)
include_directories(${Vulkan_INCLUDE_DIR})
# link_libraries(${Vulkan_LIBRARIES})

# gl
find_package(OpenGL REQUIRED)
include_directories(${OpenGL_INCLUDE_DIR})
# link_libraries(${OpenGL_LIBRARIES})

# glfw
option(GLFW_BUILD_TESTS "" OFF)
option(GLFW_BUILD_DOCS "" OFF)
option(GLFW_INSTALL "" OFF)
option(GLFW_BUILD_EXAMPLES "" OFF)
FetchContent_Declare(
    glfw
    URL https://gitee.com/MingYCheung/my-example/raw/assets/assets/glfw-3.4.zip
)

# imgui
FetchContent_Declare(
    imgui
    GIT_REPOSITORY https://gitee.com/MingYCheung/imgui.git
)

# luaCore
FetchContent_Declare(
    luaCore
    GIT_REPOSITORY https://gitee.com/MingYCheung/luaCore.git
)

# vk-bootstrap
FetchContent_Declare(
    vk-bootstrap
    GIT_REPOSITORY https://gitee.com/MingYCheung/vk-bootstrap.git
    GIT_TAG v1.3.295
)

# boost


FetchContent_MakeAvailable(glfw imgui luaCore vk-bootstrap )
endmacro(link_thirdparty)
